package com.newMedical.doclist.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.newMedical.doclist.mapper.DocUserMapper;
import com.newMedical.doclist.domain.DocUser;
import com.newMedical.doclist.service.IDocUserService;

/**
 * 医生表Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-01
 */
@Service
public class DocUserServiceImpl implements IDocUserService 
{
    @Autowired
    private DocUserMapper docUserMapper;

    /**
     * 查询医生表
     * 
     * @param docId 医生表主键
     * @return 医生表
     */
    @Override
    public DocUser selectDocUserByDocId(Long docId)
    {
        return docUserMapper.selectDocUserByDocId(docId);
    }

    /**
     * 查询医生表列表
     * 
     * @param docUser 医生表
     * @return 医生表
     */
    @Override
    public List<DocUser> selectDocUserList(DocUser docUser)
    {
        return docUserMapper.selectDocUserList(docUser);
    }

    /**
     * 新增医生表
     * 
     * @param docUser 医生表
     * @return 结果
     */
    @Override
    public int insertDocUser(DocUser docUser)
    {
        return docUserMapper.insertDocUser(docUser);
    }

    /**
     * 修改医生表
     * 
     * @param docUser 医生表
     * @return 结果
     */
    @Override
    public int updateDocUser(DocUser docUser)
    {
        return docUserMapper.updateDocUser(docUser);
    }

    /**
     * 批量删除医生表
     * 
     * @param docIds 需要删除的医生表主键
     * @return 结果
     */
    @Override
    public int deleteDocUserByDocIds(Long[] docIds)
    {
        return docUserMapper.deleteDocUserByDocIds(docIds);
    }

    /**
     * 删除医生表信息
     * 
     * @param docId 医生表主键
     * @return 结果
     */
    @Override
    public int deleteDocUserByDocId(Long docId)
    {
        return docUserMapper.deleteDocUserByDocId(docId);
    }
}
